package com.logistics.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//@RestController
//@Component
public class DBConfig {

    @Value("${lg.datasource.dev.url}")
    private String url;

    @Value("${lg.datasource.dev.username}")
    private String username;

    @Value("${lg.datasource.dev.password}")
    private String password;

    @GetMapping("/config/info")
    public String getConfigInfo() {
        return username+ "\t" + password + "\t" + url;
    }
}
